package oracle.springbootxm.service;


import oracle.springbootxm.pojo.GoodsInfo;
import oracle.springbootxm.pojo.UserGoodsInfo;
import oracle.springbootxm.pojo.UserInfo;

import java.util.List;
import java.util.Map;

public interface GoodsService {
    List<GoodsInfo> queryGoodsInfoAll();

    void addGoods(Map map);

    UserGoodsInfo queryuserGoods(int userid, int goodsid);

    void updateCount(int countsum, int goodsid);

    GoodsInfo queryshowGoods(int goodsid);

    GoodsInfo queryshowGoodsid(int userid);

    List<UserGoodsInfo> queryuserAllGoods(int userid);

    void deleteGoods(int userid, int goodsid);

    void deleteStoreGoods(int goodsid);

    void addNewGoods(GoodsInfo goodsInfo);

    GoodsInfo querynewGoods(String goodsname);
}
